SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE dbo.[DnnProduct_CDS_CopyPermissionsAdd]
	@PermissionID int,
	@SingleDevice bit,
	@ExpirationDate datetime,
	@Duration bigint,
	@IncInterval bigint,
	@InitialCount int,
	@MaxCount int
AS
BEGIN
	INSERT INTO [DnnProduct_CDS_CopyPermissions]
	(
		PermissionID,
		SingleDevice,
		ExpirationDate,
		Duration,
		IncInterval,
		InitialCount,
		MaxCount
	)
	VALUES
	(
		@PermissionID,
		@SingleDevice,
		@ExpirationDate,
		@Duration,
		@IncInterval,
		@InitialCount,
		@MaxCount
	)

	SELECT SCOPE_IDENTITY()
END
GO
